import {
  getRequest,
  postRequest,
  putRequest,
  deleteRequest,
  uploadFileRequest,
  getAx,
  postAx,
  poJson,
} from "@/libs/axios";
export const getOrganize = (id, params) => {
  //通过id获取组织菜顶级地址
  return getRequest(`/department/getByParentId/${id}`, params);
};
export const getSearch = (params) => {
  //搜索组织
  return getRequest("/department/search", params);
};
export const graphicsPage = (params) => {
  //通过组织结构获取界面列表
  return getRequest("/graphicsPage/page", params);
};
export const graphicsPageAdd = (params) => {
  //新建页面
  return postRequest("/graphicsPage/add", params);
};
export const gePageDetail = (params) => {
  //查看（根据id获取界面数据）
  return getRequest("/graphicsPage/detail", params);
};
export const gePageEdit = (params) => {
  //编辑界面信息
  return postRequest("/graphicsPage/edit", params);
};
export const gePageDelete = (params) => {
  //删除界面信息
  return postRequest("/graphicsPage/delete", params);
};
export const getPageCopy= (params) => {
  //复制界面信息
  return postRequest("/graphicsPage/copyLayout", params);
};
